﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Threading;
using System.Reflection;

namespace MySimpleWCFServiceWinSvcHost
{
    public partial class Service1 : ServiceBase
    {
        public Service1()
        {
            InitializeComponent();
        }

        MySimpleWCFService.HostManager hm = new MySimpleWCFService.HostManager();
        protected override void OnStart(string[] args)
        {
            hm.DoStart();
        }

        protected override void OnStop()
        {
            hm.DoStop();
            hm = null;
        }
    }
}
